<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../application/vue.js"></script>
</head>
<body>
    <div id="app">
        <ul>
            <li v-for="value in arr">
                <p @click="show(value)">{{value}}</p>
            </li>
        </ul>
        <hr>
        <ul>
            <li v-for="(value,index,count) in arr">
                <p>{{index}}:{{value}}:{{count}}</p>
            </li>
        </ul>
        <hr>
        <ul>
            <li v-for="value in obj">{{value}}</li>
        </ul>
        <hr>
        <ul>
            <li v-for="(value,key,count) in obj">
                <p>{{key}}:{{value}}:{{count}}</p>
            </li>
        </ul>
        <hr>
        <ul>
            <li v-for="(value,index,count) in str">
                <p>{{index}}:{{value}}:{{count}}</p>
            </li>
        </ul>
        <hr>
        <ul>
            <li v-for="(value,index,count) in num">
                <p>{{index}}:{{value}}:{{count}}</p>
            </li>
        </ul>
    </div>
    <script>
        new Vue({
            el:"#app",
            data:{
                arr:["萧炎","云韵","美杜莎","萧薰儿","雅菲","纳兰嫣然"],
                obj:{
                    name:"clearlove",
                    age:27,
                    gender:"M"
                },
                str:"asjdhsjfj",
                num:5
            },
            methods:{
                show(arg){
                    console.log(arg);
                }
            }
        })
    </script>
</body>
</html>